package com.wzs.learn.factory;

import com.wzs.learn.service.DeptClientService;
import com.wzs.learn.service.hystrix.DeptClientServiceImpl;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class DeptClientServiceFallBackFactory implements FallbackFactory<DeptClientService> {
    @Override
    public DeptClientService create(Throwable cause) {
        return new DeptClientServiceImpl();
    }
}
